package com.rgs.controller;

import com.rgs.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author rgsmaster
 * @date 2024/8/6 14:46
 * @description
 */
@RestController
@RequestMapping("a")
public class UserController {

    @Autowired
    //方法2，指定注入
    @Qualifier("com.rgs.service.impl.UserServiceImpl")
    private UserService userService;
}
